﻿using System.Data.Objects;
using System.Linq;
using UtfprLibrary.Windows.Forms;
using WinFormApp_Sample.Data;

namespace WinFormApp_Sample.WinForm {
    public sealed partial class FormEstadoCidadeQuery : UtfprFormQueryBase {
        public FormEstadoCidadeQuery(ObjectContext context)
            : base(context) {
            InitializeComponent();            
        }

        public override System.Collections.IEnumerable Data {
            get {
                return ((EDMWinFormApp)ObjectContext).Estados.ToList();
            }
        }
    }
}